package com.woniuxy.book.exception.booktype;

public enum BookTypeExceptionCode {
    BOOK_TYPE_EXCEPTION_TYPE_NAME_EXISTS(20001,"该类别名已存在"),
    BOOK_TYPE_EXCEPTION_PARENT_NOT_EXISTS(20002,"父类别不存在"),
    BOOK_TYPE_EXCEPTION_BOOKTYPE_NOT_EXISTS(20003,"该类别不存在"),
    BOOK_TYPE_EXCEPTION_BOOKTYPE_HAS_ENABLED(20004,"该类别已启用，不用重复启用"),
    BOOK_TYPE_EXCEPTION_BOOKTYPE_HAS_DELETED(20005,"该类别已被删除，不能进行此操作"),
    BOOK_TYPE_EXCEPTION_BOOKTYPE_HAS_DISABLED(20006,"该类别已禁用，不用重复禁用"),
    BOOK_TYPE_EXCEPTION_BOOKTYPE_NOT_NORMAL(20007,"该类别异常，不能进行此操作"),
    BOOK_TYPE_EXCEPTION_BOOKTYPE_PARENT_NOT_NORMAL(20008,"父类别异常，不能进行此操作"),
    BOOK_TYPE_EXCEPTION_BOOKTYPE_NOT_DELETED(20009,"该类别还未删除，不能进行此操作");
    private Integer code;
    private String message;

    BookTypeExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
